<?php
class Model_Sanity extends Ac_Model {
    
    
    protected static $_collection = 'sanity';

    public function __construct($data = array(), $config = array())
    {
        $config['collection'] = 'sanity';
        parent::__construct($data, $config);
    }
    
    public function __get($name) 
    {
        if ($name == 'listing') {
            return Model_Listing::find($this->ls);
        } else {
            return parent::__get($name);
        }
    }
    
    
    public static function getErrorKey()
	{
		return array(
			'' => 'Please Select',
			'photo' => 'Photo',
			'category' => 'Category',
			'area_l2' => 'District',
			'title' => 'Title',
			'user' => 'User',
			'content' => 'Content',
			'date' => 'Date',
			'type' => 'Type',
			'street' => 'Street',
			
		);
	}
}
